AddCSLuaFile( "cl_init.lua" );
AddCSLuaFile("skin.lua");
AddCSLuaFile( "shared.lua" );

include( 'shared.lua' );

for _, dir in pairs( file.FindDir("gamemodes/" .. GAME.FolderName .. "/gamemode/modules/*",true) ) do

    print("--------------------");
    local logstr = "Loaded \"" .. dir .. "\": ";
    
    // Shared
    if ( file.Exists("gamemodes/" .. GAME.FolderName .. "/gamemode/modules/" .. dir .. "/" .. dir .. "_shared.lua", true) ) then
    
		include("/modules/" .. dir .. "/" .. dir .. "_shared.lua");
		AddCSLuaFile("modules/" .. dir .. "/" .. dir .. "_shared.lua");
		logstr = logstr .. "Shared ";
            
    end
    
    // Client
    if ( file.Exists("gamemodes/" .. GAME.FolderName .. "/gamemode/modules/" .. dir .. "/" .. dir .. "_cl_init.lua", true) ) then
    
		AddCSLuaFile("modules/" .. dir .. "/" .. dir .. "_cl_init.lua");
		logstr = logstr .. "Client ";
            
    end
    
    // Server
    if ( file.Exists("gamemodes/" .. GAME.FolderName .. "/gamemode/modules/" .. dir .. "/" .. dir .. "_init.lua", true) ) then
    
		include("/modules/" .. dir .. "/" .. dir .. "_init.lua");
		logstr = logstr .. "Server ";
            
    end

    print(logstr);
    print("--------------------");
    
end

function GM:PlayerLoadout(ply)

end
